Search

平常在撰寫私有方法的時候,一時之間要 return 一個以上的回傳值,out、Tuple 用起來拐手...

  • Share this:

平常在撰寫私有方法的時候,一時之間要 return 一個以上的回傳值,out、Tuple 用起來拐手拐手的,多建一個類別就會遇到命名是一個大挑戰,把命名都想好了,又會陷入要不要 public 的漩渦,不妨嘗試一下 C# 7 的 ValueTuple。

https://dotblogs.com.tw/supershowwei/2018/10/01/135755


Tags:

About author
not provided
軟體跟料理一樣,都變成了每人每天的生活必需品。
View all posts